package com.gzdh.tang.config.ali;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
@ConfigurationProperties(prefix = "ali") // 配置 文件的前缀
public class AliAgreement {

    private List<AgreementNo> agreementNo;

    @Bean
    public void AliAgreementInit() {
        AliPayUtil.setAgreementNo(agreementNo);
    }
}
